import { createRouter, createWebHistory } from 'vue-router'

export const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/admin',
      name: 'login',
      component: () => import('./Login.vue'), // 使用动态导入
    },
    {
      path: '/admin/index',
      name: 'home',
      component:()=>import('./Home.vue'),
    },
  
  ],
})
